﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="styles/index.css" rel="stylesheet" />
    <link href="styles/modern.css" rel="stylesheet" />
    <link href="styles/modern-responsive.css" rel="stylesheet" />
<!--    <link href="styles/theme-dark.css" rel="stylesheet" />-->

    <title>mobi</title>

</head>
<body class="modern-ui">
    <div class="page fixed-header" id="sectionGENERAL">
        <div class="page-header ">
            <div class="page-header-content">
                <h1>ProjetIHM</h1>
            </div>
        </div>


        <div class="page-region">
            <div class="page-region-content tiles">
                <div class="tile-group tile-drag">
                    <!--<div id="section" class="page-region">-->
                    <div class="tile">
                        <div class="tile-content">
                            Mes Albums
                        </div>
                    </div>
                    <div class="tile double">
                        <div class="tile-content">
                            Mes contact
                        </div>
                    </div>
                    <div class="tile double-vertical">Uploader Une photo</div>
                    <!--</div>-->


                </div>
                <div class="tile-group tile-drag">
                    <!--<div id="section" class="page-region">-->
                    <div class="tile">
                        <div class="tile-content">
                            Mes Albums
                        </div>
                    </div>
                    <div class="tile double">
                        <div class="tile-content">
                            Mes contact
                        </div>
                    </div>
                    <div class="tile">Uploader Une photo</div>


                    <!--</div>-->


                </div>
            </div>
        </div>
    </div>
    <script src="scripts/jquery-1.8.3.js"></script>
    <script src="scripts/jquery.mousewheel.min.js"></script>
    <script src="scripts/tile-drag.js"></script>
    <script src="scripts/tile-slider.js"></script>
    <!--    <script type="text/javascript">
        var iScroll = 0;
        var lastScroll = 0;
        window.alert("ici");
        $('#section').bind('mousewheel', function (event, delta) {

            $(this).scrollLeft(100 * -delta + (100 * iScroll));

            //Si a la fin
            if (!($(this).scrollLeft() == lastScroll)) {
                iScroll += -delta;
            }
            lastScroll = $(this).scrollLeft();

            event.stopPropagation();
        });
    </script>-->

    <script>
        function Resize() {
            var tiles_area = 0;
            $(".tile-group").each(function () {
                tiles_area += $(this).outerWidth() + 80;

            });

            $(".tiles").css("width", 120 + tiles_area + 20);

            $(".page").css({
                height: $(document).height() - 20,
                width: $(document).width()
            });
        }

        function AddMouseWheel() {
            $("#sectionGENERAL").mousewheel(function (event, delta) {
                var scroll_value = delta * 50;
                if (jQuery.browser.webkit) {
                    this.scrollLeft -= scroll_value;

                } else {
                    document.documentElement.scrollLeft -= scroll_value;
                }
                return false;
            });
        }
        $("#sectionGENERAL").resize(Resize);
        $(function () {

            Resize();
            AddMouseWheel();

        })


    </script>
</body>
</html>
